package top.csjss.hospital.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import top.csjss.hospital.entity.Cashier;
import top.csjss.hospital.entity.CashierExample;

public interface CashierMapper {
    long countByExample(CashierExample example);

    int deleteByExample(CashierExample example);

    int deleteByPrimaryKey(Integer cashierId);

    int insert(Cashier record);

    int insertSelective(Cashier record);

    List<Cashier> selectByExample(CashierExample example);

    Cashier selectByPrimaryKey(Integer cashierId);

    int updateByExampleSelective(@Param("record") Cashier record, @Param("example") CashierExample example);

    int updateByExample(@Param("record") Cashier record, @Param("example") CashierExample example);

    int updateByPrimaryKeySelective(Cashier record);

    int updateByPrimaryKey(Cashier record);

    /**
     * 根據患者id查詢項目
     * @param perid
     * @return
     */
    List<Cashier> selectProjectByReportId(Integer perid);
}
